import $http from '../request/request.js'

const defaultHeader = {}
// const API = {
export const getAllUser = $http('/api/getAllUser', 'GET')
export const getShopList = $http('/api/getShopList', 'POST')
export const getAllShopCate = $http('/api/getAllShopCate', 'POST')

export const getAllArticle = $http('api/getArticleList', 'POST')
export const addShop = $http('api/addShop', 'POST')
export const getShopOne = $http('api/getShopOne', 'POST')
export const updateShop = $http('api/updateShop', 'POST')
export const deleteShop = $http('api/deleteShop', 'POST')
export const getAllAdmin = $http('api/getAllAdmin', 'GET')
export const register = $http('api/register', 'POST')
export const getUserInfo = $http('api/findUser', 'POST')
export const getMyArticleList = $http('api/getMyArticleList', 'POST')
export const updateAdminForAdmin = $http('api/updateAdminForAdmin', 'POST')
export const deleteAdmin = $http('api/deleteAdmin', 'POST')
export const getAllarticleCate = $http('api/getAllarticleCate', 'POST')
export const changeArticleStatus = $http('api/changeArticleStatus', 'POST')
export const addArticle = $http('api/addArticle', 'POST')
export const getArticleDetail = $http('api/getArticleDetail', 'POST')
export const updateArticle = $http('api/updateArticle', 'POST')
export const deleteArticle = $http('api/deleteArticle', 'POST')
export const getForm = $http('api/getForm', 'POST')
export const getUserList = $http('api/getUserList', 'POST')
export const determineChoose = $http('api/determineChoose', 'POST')
export const getFormAddressList = $http('api/getFormAddressList', 'POST')
export const updateAddressForm = $http('api/updateAddressForm', 'POST')
export const getReportList = $http('api/getReportList', 'POST')
export const passReport = $http('api/passReport', 'POST')
// API
